import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-forms',
  templateUrl: './forms.component.html',
  styleUrls: ['./forms.component.scss'],
})
export class FormsComponent implements OnInit {
  constructor() {}
  skills: string[] = [];
  ngOnInit() {}
  addSkill(skill: string) {
    console.log(skill);
    const skillStr = skill.trim();
    if (this.skills.indexOf(skillStr) === -1) {
      this.skills.push(skillStr);
    }

    console.log(this.skills);
  }
}
